<?php
/**
 *    view: part view profile right side menu
 *    File: profile/part/view_profile_side_menu.php
 */
$user_name = ( $user->name!="" )?$user->name:$user->username;
?>


            <ul class="side-menu">
                <?php if( true == $is_friend ) { ?>
                <li><a class="send-request confirmLink" href="javascript:void(null)" onclick="remove_friend(<?php echo $user->id;?>)" ><img src="<?php echo base_url(); ?>img/template/remove-friend.png" width="26" height="26" alt="add-friend"><?php echo lang('remove_friend'); ?></a></li>
                <?php } else { ?>
                <li><a href="javascript:send_friend_request(<?php echo $user->id;?>)" class="send-request confirmLink" title='<?php echo lang('add_to_friend');?>' alt='<?php printf(lang('confirm_send_friend_request'),$this->config->item('friend_request_cost'));?>' ><img src="<?php echo base_url(); ?>img/template/add-friend.png" width="26" height="26"  alt="add-friend" ><?php echo lang('add_to_friend'); ?></a></li>
                <?php } ?>
                
                <?php if( true == $is_favorite ) { ?>
                <li><a href="javascript:remove_favorite(<?php echo $user->id; ?>)" class="confirmLink" title='<?php echo lang('remove_favorites');?>' alt='<?php echo lang('confirm_remove_favorite');?>' ><img src="<?php echo base_url(); ?>img/template/delete-favorite.png" width="26" height="26" alt="add-fav"><?php echo lang('remove_favorites'); ?></a></li>
                <?php } else { ?>
                <li><a href="javascript:add_favorite(<?php echo $user->id; ?>)" class="confirmLink" title='<?php echo lang('add_to_favorites');?>' alt='<?php echo lang('confirm_add_favorite');?>' ><img src="<?php echo base_url(); ?>img/template/add-fav.png" width="26" height="26" alt="add-fav"><?php echo lang('add_to_favorites'); ?></a></li>
                <?php } ?>
                
                <li><a href="<?php echo base_url() ?>conversation/messages/<?php echo $user->username;?>.htm"><img src="<?php echo base_url(); ?>img/template/send-msg.png" width="26" height="26" alt="send-msg"><?php echo lang('send_message'); ?></a></li>
                <li><a class="iframe cboxElement" href="<?php echo base_url() ?>presents/present-list.htm?name=<?php echo $user_name; ?>&to_id=<?php echo $user->id; ?>"><img src="<?php echo base_url(); ?>img/template/send-present.png" width="26" height="26" alt="send-present"><?php echo lang('send_present'); ?></a></li>
                
                <li><a href="javascript:send_poke(<?php echo $user->id; ?>,<?php echo $this->session->userdata('user_id') ?>)" class="confirmLink" title='<?php echo lang('poke');?>' alt='<?php printf(lang('confirm_send_poke'),$this->config->item('poke_cost'));?>' ><img src="<?php echo base_url(); ?>img/template/poke-user.png" width="26" height="26" alt="poke"><?php echo lang('poke'); ?></a></li>
                
            </ul>
            
            <script src="<?php echo base_url(); ?>js/dialog.js"></script>